package com.wjm.blog.system.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 角色信息表保存VO
 *
 * @author wjm
 * @version 1.0
 * @date 2023-10-18T14:34:39.274
 */
@Data
@ApiModel
public class SysRoleSaveVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "name不能为空")
    @ApiModelProperty(value = "角色名称", required = true)
    private String name;

    @NotBlank(message = "code不能为空")
    @ApiModelProperty(value = "角色编码", required = true)
    private String code;

    @NotBlank(message = "description不能为空")
    @ApiModelProperty(value = "描述", required = true)
    private String description;

    @NotNull(message = "isEnabled不能为空")
    @ApiModelProperty(value = "启用标识 0：否，1：是", required = true)
    private Integer isEnabled;

}
